From 25ffba64594f081db268d238566a0c61e30c1c8a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 14 Sep 2018 10:06:28 +0100 Subject: [PATCH] d/libgtk-4-0.postinst.in: Run gio-querymodules for IM modules --- debian/changelog | 1 + debian/libgtk-4-0.postinst.in | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 09052ee4c5..7c4f89af30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,6 +34,7 @@ gtk+4.0 (3.94.0-1) UNRELEASED; urgency=medium * Stop installing gtk4-query-immodules, superseded by gio-querymodules * Drop support for OLD_MODULES_BASE_PATH. GTK+ 4 only supports modules in the multiarch location. + * d/libgtk-4-0.postinst.in: Run gio-querymodules for IM modules -- Jeremy Bicha Fri, 19 Jan 2018 22:05:35 -0500 diff --git a/debian/libgtk-4-0.postinst.in b/debian/libgtk-4-0.postinst.in index fd8b942577..0121b6711f 100644 --- a/debian/libgtk-4-0.postinst.in +++ b/debian/libgtk-4-0.postinst.in @@ -1,19 +1,22 @@ #!/bin/sh set -e -IMMODULES_DIR=/@MODULES_BASE_PATH@/immodules +update_modules () { + for dir in immodules; do + if [ -d "/@MODULES_BASE_PATH@/$dir" ]; then + /@LIBDIR@/glib-2.0/gio-querymodules "/@MODULES_BASE_PATH@/$dir" || true + fi + done +} if [ "$1" = triggered ]; then # This is triggered everytime an application installs a - # GTK immodule loader - /@LIBDIR@/@SHARED_PKG@/gtk4-query-immodules --update-cache || true + # GTK IM module + update_modules exit 0 fi #DEBHELPER# # Also handle the initial installation -if [ -d $IMMODULES_DIR ]; then - /@LIBDIR@/@SHARED_PKG@/gtk4-query-immodules --update-cache || true -fi - +update_modules -- 2.30.2